package com.yz.xyt.mapper;

import com.yz.xyt.domain.Clazz;
import com.yz.xyt.domain.Department;
import com.yz.xyt.domain.vo.DepartmentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    Department selectByDeptNumber(@Param("deptNumber") String deptNumber);

    int updateByDeptNumberSelective(Department record);

    void deleteByDeptNumber(@Param("deptNumber") String deptNumber);

    String findDeptNumberByName(@Param("dname") String dname);

    List<Department> findDepartmentList(DepartmentVo departmentVo);
}